<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="Pragma" content="no-cache" />
   <title><?php echo $title   ?></title>
    <link href="<?php echo base_url(); ?>assets/css/style.css" rel="stylesheet" type="text/css" media="screen" />
   <link href="<?php echo base_url(); ?>assets/css/menu.css" rel="stylesheet" type="text/css" media="screen" />
   <link href="<?php echo base_url(); ?>assets/css/form.css" rel="stylesheet" type="text/css" media="screen" />   
   <link href="<?php echo base_url(); ?>assets/css/tab.css" rel="stylesheet" type="text/css" media="screen" />
   <link href="<?php echo base_url(); ?>assets/css/table.css" rel="stylesheet" type="text/css" media="screen" />   
   <link href="<?php echo base_url(); ?>assets/css/grid/grid.css" rel="stylesheet" type="text/css" media="screen" />
    <script>
  	  function logout()
  	  {
  	  	 if (confirm('Are you sure logout program'))
  	  	 {
  	  	  	 window.location.href='login/logout';
  	  	  	 return true;
  	  	 }
  	  	 return false;
  	  }
  	</script>
 	
</head>
<body>
<?php 
$corporate=$this->session->userdata('corporate');
$user=$this->session->userdata('username');
//print_r($this->session);
?>

<div id="info"  >
  
	  <span class="user"><img  src="<?php echo base_url(); ?>assets/css/images/user_silhouette.png" /><?php print $user ?> <img src="<?php echo base_url(); ?>assets/css/images/house.png" /> <?php echo iconv("tis-620","utf-8",$corporate->FCNAME)?></span> 	  
</div>

<table cellpadding="0" class="page-wrap" cellspacing="0">		
	<tr>
		<td class="header" colspan="2"  >		
			<h1 id="logo-text">L.P.P. Management System</h1>		
		    <div id="logout"><?php echo  anchor('login/logout/','ออกจากระบบ');?></div>	
			<div id="tabs">
				 <?php print iconv("tis-620","utf-8", $this->session->top_menu); ?>
			</div>
	    </td>	  
	</tr>
	<tr> 
		<td class="main-content">
		 
	<?php echo $content; ?>
		 
		</td>
	</tr>		
 
 </table>
 
</body>
</html>